<?php
class EventInterestsController extends EventsAppController {

	var $name = 'EventInterests';
	var $helpers = array('Html', 'Form');
	/*
	function index() {
		$this->EventInterest->recursive = 0;
		$this->set('eventInterests', $this->paginate());
	}

	function view($id = null) {
		if (!$id) {
			$this->Session->setFlash(__('Invalid EventInterest', true));
			$this->redirect(array('action' => 'index'));
		}
		$this->set('eventInterest', $this->EventInterest->read(null, $id));
	}

	function add() {
		if (!empty($this->data)) {
			$this->EventInterest->create();
			if ($this->EventInterest->save($this->data)) {
				$this->Session->setFlash(__('The EventInterest has been saved', true));
				$this->redirect(array('action' => 'index'));
			} else {
				$this->Session->setFlash(__('The EventInterest could not be saved. Please, try again.', true));
			}
		}
		$events = $this->EventInterest->Event->find('list');
		$users = $this->EventInterest->User->find('list');
		$this->set(compact('events', 'users'));
	}

	function edit($id = null) {
		if (!$id && empty($this->data)) {
			$this->Session->setFlash(__('Invalid EventInterest', true));
			$this->redirect(array('action' => 'index'));
		}
		if (!empty($this->data)) {
			if ($this->EventInterest->save($this->data)) {
				$this->Session->setFlash(__('The EventInterest has been saved', true));
				$this->redirect(array('action' => 'index'));
			} else {
				$this->Session->setFlash(__('The EventInterest could not be saved. Please, try again.', true));
			}
		}
		if (empty($this->data)) {
			$this->data = $this->EventInterest->read(null, $id);
		}
		$events = $this->EventInterest->Event->find('list');
		$users = $this->EventInterest->User->find('list');
		$this->set(compact('events','users'));
	}

	function delete($id = null) {
		if (!$id) {
			$this->Session->setFlash(__('Invalid id for EventInterest', true));
			$this->redirect(array('action' => 'index'));
		}
		if ($this->EventInterest->del($id)) {
			$this->Session->setFlash(__('EventInterest deleted', true));
			$this->redirect(array('action' => 'index'));
		}
		$this->Session->setFlash(__('The EventInterest could not be deleted. Please, try again.', true));
		$this->redirect(array('action' => 'index'));
	}
	*/
}
?>